package com.TripMate.system.mapper;

import com.TripMate.system.model.dto.chat.AiHistoryByMyQueryRequest;
import com.TripMate.system.model.dto.chat.AiHistoryQueryRequest;
import com.TripMate.system.model.entity.AiHistory;
import com.TripMate.system.model.vo.AiHistoryVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
* @author dongmianyan
* @description 针对表【ai_history(AI回答历史记录表)】的数据库操作Mapper
* @createDate 2024-11-29 10:24:44
* @Entity generator.domain.AiHistory
*/
public interface AiHistoryMapper extends BaseMapper<AiHistory> {

    List<AiHistoryVO> getQueryByAll(Page<AiHistoryVO> pageParam, AiHistoryQueryRequest aidHistoryQueryRequest);

    List<AiHistoryVO> getQueryByMy(Page<AiHistoryVO> pageParam, AiHistoryByMyQueryRequest aidHistoryQueryRequest, Long userId);
}




